<?php
require_once 'smarty_lib/Smarty.class.php';
require_once 'lib/Produk.php';
require_once 'lib/DBClass.php';
require_once 'lib/Account.php';
$smarty = new Smarty();
$pro = new Produk();
$acc = new Account();

$smarty->template_dir = 'template/';
$smarty->compile_dir = 'template_c/';

	$smarty->assign('cookie', $acc->get_cookie());
	$smarty->assign('page','welcome.html');
	$smarty->assign('title','Index');

	$data = $pro->get_all_pro();
	$smarty->assign('pro', $data);

	$smarty->display('index.html');

?>